package org.shop.service;

import java.util.List;
import java.util.Map;

import org.shop.entity.JoinInfo;
import org.shop.service.base.BaseService;

public interface JoinInfoService extends BaseService<JoinInfo, Long> {
   
	/**
	 * 查看一个活动下的报名人数
	 * @param activityId
	 * @return
	 */
	public List<JoinInfo> getJoinInfoByActivityID(Long activityId);
	
	/**
	 * app获取报名人数
	 * @param params
	 * @return
	 */
	public int getJoinCount(Map<String, Object> params);
	
	/**
	 * 查看报名人信息列表
	 * @param paramMap
	 * @return
	 */
	public Map<String,Object> getJoinInfoList(Map<String,Object> paramMap);
	
	/**
	 * 删除报名人信息
	 * @param activityId
	 * @return
	 */
	public int delJoinInfo(Long activityId);
	
	/**
	 * 查看自己是否有参加活动
	 * @param paramMap
	 * @return
	 */
	public int ifJoinInfo(Map<String, Object> params);
}